package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.data.DomainEntity;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IDomainEntityDao {
	public void save(DomainEntity entity);

	public void update(DomainEntity entity);

	public DomainEntity queryById(long id);

	public DomainEntity queryByUri(String uri);

	public boolean checkUri(String uri);

	public PageBean<DomainEntity> queryByPageNum(int pageNo) throws DBException;
	
	public PageBean<DomainEntity> queryDataEntityByPageNum(int pageNo) throws DBException;
	
	public List<DomainEntity>  queryAll();
	
	public List<DomainEntity>  queryByProperty(String text);
	
	public DomainEntity  queryByName(String name);
}
